/*---------------------------------------------------------------------------------

	by GugloPWN

---------------------------------------------------------------------------------*/

#ifndef MAP_H
#define MAP_H

//#include "player.h"
#include "block.h"

class map {

	public:
	
	

	map() {getdefaultmap();}
	map(char path[64]) {readmap(path);}
	
	void readmap(char path[64]);
	void getdefaultmap();
	void loadmapmodels();
	
	void drawmap(int mx, int my);
	void drawmapcolmap(int mx, int my);
	
	
	inline int getblockbase(int mapx, int mapy,int i, int j) {return blks[mapx][mapy]->getbase(i,j);}
	inline int getblockplat(int mapx, int mapy,int i, int j) {return blks[mapx][mapy]->getplat(i,j);}
	inline rail getblockrail(int mapx, int mapy,int i) {return blks[mapx][mapy]->getrail(i);}
	//inline void setplayer(player* plyr) {p1 = plyr;}
	
	private:
	
	//player *p1;
	block *blks[16][16];
	
	int time;
	//int num_tagspots;
	
	

};

#endif
